﻿using Max.PH5_2011A.IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Max.PH5_2011A.API.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    [Route("city")]
    [ApiController]
    public class CityController : ControllerBase
    {
        ICityService _city;

        public CityController(ICityService city)
        {
            _city = city;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult Get()
        {
            var result = _city.GetCityRecursion();
            return Ok(result);
        }
    }
}
